home *** CD-ROM | disk | FTP | other *** search
/ Champak 138 / Volume 138 Aug 19 2011 - Damaged.iso / Games / shadez.swf / scripts / Local / Game / Thing / CStrikeAirBomb.as < prev    next >
Encoding:
Text File  |  2011-08-19  |  2.1 KB  |  79 lines

  1. package Local.Game.Thing
  2. {
  3.    import Local.Audio.*;
  4.    import Local.Game.World.*;
  5.    import Local.Game.World.Map.*;
  6.    import Local.Game.World.Map.Cell.*;
  7.    import Local.Math.*;
  8.    import STC9.System.*;
  9.    import flash.display.*;
  10.    import flash.events.*;
  11.    import flash.geom.*;
  12.    
  13.    public class CStrikeAirBomb extends CStrike
  14.    {
  15.        
  16.       
  17.       public var mWaitCount:int;
  18.       
  19.       public var mTargetPosition:CPosition;
  20.       
  21.       public function CStrikeAirBomb(param1:*)
  22.       {
  23.          if(true)
  24.          {
  25.             super(new CPosition());
  26.             if(true)
  27.             {
  28.                mType = "strikeairbomb";
  29.                if(true)
  30.                {
  31.                   Process = Process_Normal;
  32.                   if(true)
  33.                   {
  34.                      mTargetPosition = (param1 is CPosition ? param1 : param1.mPosition).Clone();
  35.                      if(true)
  36.                      {
  37.                         mWaitCount = SECONDS * 1;
  38.                      }
  39.                      AddSound("jet",Jet_By,1000);
  40.                   }
  41.                   GetSound(PlaySound("jet",{
  42.                      "mVolume":1,
  43.                      "mPan":0
  44.                   })).AddFilter(new CSoundFilter([{
  45.                      "pan":-0.5,
  46.                      "time":0
  47.                   },{
  48.                      "pan":0,
  49.                      "time":2000
  50.                   },{
  51.                      "pan":1,
  52.                      "time":11000
  53.                   }]));
  54.                }
  55.                mShowOnMap = true;
  56.             }
  57.             IncrementFired();
  58.          }
  59.       }
  60.       
  61.       public function Process_Normal() : void
  62.       {
  63.          var _loc2_:*;
  64.          var _loc1_:*;
  65.          ┬º┬ºpush(_loc2_ = (_loc1_ = ┬º┬ºfindproperty(mWaitCount)).mWaitCount - 1);
  66.          if(true)
  67.          {
  68.             _loc1_.mWaitCount = _loc2_;
  69.          }
  70.          if(┬º┬ºpop() < 0)
  71.          {
  72.             DispatchDispose();
  73.             AddThing(new CShotAirBomb(mTargetPosition));
  74.          }
  75.          Process_Children();
  76.       }
  77.    }
  78. }
  79.